﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CluelessGame
{
    [Serializable]
    public class Weapon : ObjectWithLocation
    {
        public string Name;

        private WeaponCard _associatedCard;

        public WeaponCard AssociatedCard
        {
            get { return _associatedCard; }
            set { _associatedCard = value; }
        }

        public static bool operator ==(Weapon a, Weapon b)
        {
            if ((object)a == null && (object)b == null)
                return true;
            if ((object)a == null || (object)b == null)
                return false;
            return a.Name == b.Name;
        }

        public static bool operator !=(Weapon a, Weapon b)
        {
            if ((object)a == null && (object)b == null)
                return false;
            if ((object)a == null || (object)b == null)
                return true;
            return a.Name != b.Name;
        }

        public override bool Equals(object obj)
        {
            return this == obj as Weapon;
        }

        public Weapon()
        {

        }
    }
}
